//
//  MCSendRecordListAndTotalModel.h
//  XDYL
//
//  Created by MC on 2018/3/28.
//  Copyright © 2018年 TLYL01. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MCHongBaoRecordProperty.h"
/*
 * /api/v1/redenvelopes/getsendrecordlist
 获取发红包的记录、总金额、红包总个数

 */
@interface MCSendRecordListAndTotalModel : NSObject
//BeginTime
//开始时间
//EndTime
//结束时间
//State
//状态-1 全部 0 未领完 1已领完
//IsHistory
//是否历史库
//CurrentPageIndex
//CurrentPageSize

@property(nonatomic,strong) void(^callBackSuccessBlock)(id manager);
@property(nonatomic,strong) void(^callBackFailedBlock)(id manager,NSString *errorCode);
- (void)refreashDataAndShow;

- (instancetype)initWithDic:(NSDictionary *)dic;


@end

@interface MCSendRecordTotalModel : NSObject

@property (nonatomic,strong) NSString *TotalAmount;// = 0;
@property (nonatomic,strong) NSString *TotalQty;// = 1;

@end



@interface MCSendRecords : NSObject

@property (nonatomic,strong)MCPagingModel *Paging;
@property (nonatomic,strong)NSArray <MCRecordsModel *> * Records;

@end

@interface MCSendRecordsModel : NSObject

@property (nonatomic,strong)MCSendRecords *SendRecords;
@property (nonatomic,strong)MCSendRecordTotalModel *SendRecordTotal;

+(MCSendRecordsModel *)getModelWithDic:(NSDictionary *)dic;

@end

//{
//    "SendRecords": {
//        "Paging": {
//            "PageIndex": 0,
//            "Total": 0,
//            "PageSize": 0,
//            "HasNextPage": true
//        },
//        "Records": [
//                    {
//                        "SysId": "string",
//                        "Mode": 0,
//                        "Amount": 0,
//                        "SendTime": "2018-03-28T06:12:16.480Z",
//                        "Qty": 0,
//                        "OpendedQty": 0,
//                        "Unopended": 0,
//                        "IsExpired": true
//                    }
//                    ]
//    },
//    "SendRecordTotal": {
//        "TotalAmount": 0,
//        "TotalQty": 0
//    }
//}























